package com.ssm.helong.shop.entity;

/**
 * 订单实体类
 */
public class Order {
    //订单编号
    private Integer id;
    //物流方式
    private String orderSendType;
    //支付方式
    private String orderPayType;
    //订单总额
    private Double orderPayCount;
    //下单人
    private Integer userId;
    //收货人
    private String orderShPerson;
    //收货地址
    private String orderShAddress;
    //收货电话
    private String orderShPhone;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderSendType() {
        return orderSendType;
    }

    public void setOrderSendType(String orderSendType) {
        this.orderSendType = orderSendType;
    }

    public String getOrderPayType() {
        return orderPayType;
    }

    public void setOrderPayType(String orderPayType) {
        this.orderPayType = orderPayType;
    }

    public double getOrderPayCount() {
        return orderPayCount;
    }

    public void setOrderPayCount(Double orderPayCount) {
        this.orderPayCount = orderPayCount;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getOrderShPerson() {
        return orderShPerson;
    }

    public void setOrderShPerson(String orderShPerson) {
        this.orderShPerson = orderShPerson;
    }

    public String getOrderShAddress() {
        return orderShAddress;
    }

    public void setOrderShAddress(String orderShAddress) {
        this.orderShAddress = orderShAddress;
    }

    public String getOrderShPhone() {
        return orderShPhone;
    }

    public void setOrderShPhone(String orderShPhone) {
        this.orderShPhone = orderShPhone;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", orderSendType='" + orderSendType + '\'' +
                ", orderPayType='" + orderPayType + '\'' +
                ", orderPayCount=" + orderPayCount +
                ", userId=" + userId +
                ", orderShPerson='" + orderShPerson + '\'' +
                ", orderShAddress='" + orderShAddress + '\'' +
                ", orderShPhone='" + orderShPhone + '\'' +
                '}';
    }
    //定义无参构造方法
    public Order() {
    }
    //定义有参构造方法

    public Order(Integer id, String orderSendType, String orderPayType, Double orderPayCount, Integer userId, String orderShPerson, String orderShAddress, String orderShPhone) {
        this.id = id;
        this.orderSendType = orderSendType;
        this.orderPayType = orderPayType;
        this.orderPayCount = orderPayCount;
        this.userId = userId;
        this.orderShPerson = orderShPerson;
        this.orderShAddress = orderShAddress;
        this.orderShPhone = orderShPhone;
    }
}
